package com.robot.console.client.common;

import java.util.HashMap;

public class SingleClientProcessorsContainer
{
	private final HashMap<String, ISingleClientProcessor> container = new HashMap<String, ISingleClientProcessor>();

	public void addMessageProcessor(String messageName, ISingleClientProcessor messageProcessor)
	{
		this.container.put(messageName, messageProcessor);
	}

	public ISingleClientProcessor getMessageProcessor(String messageName)
	{
		return this.container.get(messageName);
	}

	public ISingleClientProcessor removeMessageProcessor(String messageName)
	{
		return this.container.remove(messageName);
	}
}
